function startTime() 
{
	var today=new Date(); 
	var h=today.getHours(); 
	var m=today.getMinutes(); 
	
	m=checkTime(m); 
		
	document.getElementById('hour').innerHTML=h+":"+m; 
	t=setTimeout('startTime()',500);
}

function checkTime(i) 
{
	if (i < 10) 
		i= "0" + i;
		return i;
}

function closeAll()
{
	var s1 = document.getElementById('selection_content');
	var s2 = document.getElementById('puissance_content');
	var s3 = document.getElementById('timer_content');
	var s4 = document.getElementById('lock_content');
	var s5 = document.getElementById('heat_content');

	if (s1.style.display == "block")
		s1.style.display = "none";
	if (s2.style.display == "block")
		s2.style.display = "none";
	if (s3.style.display == "block")
		s3.style.display = "none";
	if (s4.style.display == "block")
		s4.style.display = "none";
	if (s5.style.display == "block")
		s5.style.display = "none";
}

function show(name)
{
	var ele = document.getElementById(name);
	if(ele.style.display == "block")
		ele.style.display = "none";
	else
		ele.style.display = "block";
}